home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / dosutils / cutpak11.zip / README2.TXT < prev    next >
Text File  |  1996-09-26  |  5KB  |  117 lines

  1. CLAY'S HAND-ASSEMBLED UTILIITIES
  2. --------------------------------
  3.  
  4. This file is a continuation of the README.TXT file.  See README.TXT for
  5. the copyright notice and license agreement.
  6.  
  7. The following utility programs were hand-assembled using DEBUG:
  8.  
  9.  
  10. HIDE.COM and UNHIDE.COM:
  11. -----------------------
  12. This is the easy way to hide and unhide files and directories!
  13.  
  14. Syntax: HIDE filespec        or     UNHIDE filespec
  15.  
  16. Filespec may contain wildcards for processing of multiple files. HIDE sets
  17. the "hidden" attribute without changing any other attributes. UNHIDE clears
  18. the "hidden", "system", and "read-only" flags, effectively unprotecting the
  19. file for copying and writing, while leaving other attributes intact.
  20.  
  21. CAUTION: Don't do UNHIDE *.* in the root directory of C:. You'll unprotect
  22.          the hidden, read-only system files IO.SYS and MSDOS.SYS, which can
  23.          have undesirable consequences for your system.
  24.  
  25. Similar capability is available in DOS 5.0 and higher via the ATTRIB command,
  26. but ATTRIB is awkward to use with all of its parameters, and it complains
  27. when it can't find the file or is restricted by the status of unspecified
  28. attributes. Since HIDE and UNHIDE produce no display under any conditions,
  29. you can use them in your batch program without regard for whether or not
  30. such a file exists or has various other attributes.
  31.  
  32.  
  33.  
  34. SETRO.COM and SETSHR.COM:
  35. ------------------------
  36. Like HIDE and UNHIDE, SETRO and SETSHR provide a quick and easy way to set
  37. the Read-Only attribute (SETRO) or the System, Hidden, and Read-Only
  38. attributes (SETSHR) in your batch files.
  39.  
  40. Syntax: SETRO filespec       or     SETSHR filespec
  41.  
  42.  
  43.  
  44. BIOSVER.COM and VIDVER.COM:
  45. --------------------------
  46. These utilities capture the version identification strings from the system
  47. BIOS ROMs and the VGA ROM extension, respectively.
  48.  
  49. BIOSVER returns all text strings found in memory segments F000-FFFF that
  50. contain both "BIOS" and either "ver" or "(C)". The search for "BIOS" is 
  51. case-sensitive; when it is found, the string's remaining ASCII characters 
  52. are checked for any one of the other three literals in a non-case-sensitive 
  53. mode. Strings that pass both tests are printed to STDOUT, which may be 
  54. redirected to a file.
  55.  
  56. VIDVER is similar to BIOSVER in concept, but different in the details. The
  57. memory segments searched are C000-C7FF (the VGA ROM area), and the returned
  58. strings are all those that contain any one of the following: "BIOS", "ver",
  59. "(C)", or "Copyr". Again, the search for "BIOS" is case-sensitive and the
  60. search for other literals is non-case-sensitive, but any one of the literals
  61. will cause the string to be printed to STDOUT ("BIOS" is not a prerequisite
  62. for the others).
  63.  
  64.  
  65.  
  66. EXTMEM.COM:
  67. ----------
  68. This utility reads the CMOS to determine how much extended memory is present
  69. on the system. It returns a string formatted as follows:
  70.  
  71. Extended Memory = nnnnnK
  72.  
  73. where nnnnn is replaced by the number of Kbytes found. The first digit is a
  74. blank space when the result is less than 10000K. All other digits show as
  75. leading zeros when applicable. Common values are 1024K for 1 MB of extended
  76. memory (typical for a "2 MB" system), 3072K (typical "4 MB" system), 7168K
  77. (typical "8 MB" system), 15360K (typical "16 MB" system), etc. On some PCs,
  78. a portion of the 384K "shadow" RAM becomes available as additional extended
  79. memory when not used for shadowing; in such cases, slightly higher values
  80. are returned (e.g., 3392K on a "4 MB" system that makes 320K of unused
  81. shadow RAM available as extended memory).
  82.  
  83. The output is sent to STDOUT, which may be redirected to a file for further
  84. interpretation.
  85.  
  86. Heuristic virus scanners may report that this program contains useless code.
  87. This is due to the manner in which it provides the needed delay between
  88. requesting a value from CMOS and reading the value CMOS returns.  It does
  89. not reflect a program deficiency or alteration.
  90.  
  91.  
  92.  
  93. DAYOFWK.COM:
  94. -----------
  95. Returns an errorlevel code corresponding to the current day of week, where
  96. 1=Sunday, 2=Monday, etc., through 7=Saturday. Failure results in no error
  97. code returned. Visual output reports the errorlevel returned and the day
  98. of week (3-character abbreviation); e.g., "3=Tue". This output may be
  99. redirected to a file, NUL, or other device. Use DAYOFWK in batch files to
  100. control processes that should be performed only on certain days of the week.
  101.  
  102.  
  103.  
  104. FIXTIME.COM:
  105. -----------
  106. Resets the DOS clock to match the real-time clock. This is handy when
  107. certain notebook PCs wake up from suspended operation and still show a
  108. DOS time setting from when they were initially suspended. The real-time
  109. clock has continued running, but DOS was asleep and doesn't know that any
  110. time has passed! A simple FIXTIME command will bring DOS back to reality.
  111. This can also be used periodically on systems that run continuously on an
  112. extended basis, to correct DOS's inherent time drift.
  113.  
  114.  
  115. Enjoy!
  116. Clay
  117.